<template>
	<view class="content">
		<u-form labelPosition="left" labelWidth="auto" style="font-size:'24rpx'">
			<view class="title">
				<text>基本信息</text>
			</view>
			<view class="form">
				<u-form-item label="单据编号" borderBottom>
					<u-input border="none" placeholder="请填写"></u-input>
					<u-image slot="right" src="/static/img/home/scan.png" width="12" height="12"></u-image>
				</u-form-item>
				<u-form-item label="备品名称" borderBottom>
					<u-input border="none" placeholder="请填写"></u-input>
				</u-form-item>
			</view>
			<view class="title">
				<text>产品信息</text>
			</view>
			<view>
				<u-form-item>
					<u-button text="添加产品" type="primary" @click="handleGo"></u-button>
				</u-form-item>
			</view>
			<view class="title">
				<text>备注</text>
			</view>
			<view class="form">
				<u-form-item borderBottom>
					<u--textarea placeholder="请输入内容"></u--textarea>
				</u-form-item>
			</view>
			<view>
				<u-form-item>
					<u-button text="提交" type="primary"></u-button>
				</u-form-item>
			</view>
		</u-form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			handleGo(){
				uni.navigateTo({
					url:'/pages/spare/spareProducts'
				})
			}
		}
	}
</script>

<style lang="less">
	page {
		background-color: rgb(248, 248, 248);
		font-size: 24rpx;
		padding: 0 32rpx 0 32rpx;
	}
	.content {
		display: flex;
		flex-direction: column;
	}
	
	.title {
		margin-top: 32rpx;
	}
	
	.form {
		background-color: #fff;
		padding: 0 32rpx 0 32rpx;
		border-radius: 10rpx;
		margin-top: 32rpx;
	}
</style>
